package com.ojoin.ojoin.eb_spider.service;

import com.ojoin.trade.common.exception.BusinessException;

/**
 * Created by liaowuhen on 2017/3/20.
 */

public interface WebDriveBaseService {

    void init();
    /**
     * 抓取数据预处理（配置数据抓取器）
     *
     * @throws BusinessException
     * @throws Exception
     */
    boolean prepareCatchData(String cathType,String platFrom,String userName) throws BusinessException, Exception;

    /**
     * 登陆
     *
     * @param baseUrl
     * @param username
     * @param password
     * @return
     * @throws BusinessException
     */
    boolean LoginByUserInfo(String baseUrl, String username,
                            String password) throws Exception;

    boolean isLogin() throws Exception;

    boolean login(String username, String password) throws Exception;

    void closeCatchData();

    String getLoginPassword(String pwd);

    void deal(Object object) throws Exception;

    void repairDeal(Object object) throws Exception;

    void deal() throws Exception;
}
